<template>
  <div class="zfbody">
    <div class="one">
        支付金额
    </div>
    <div class="two">
        <h2>￥{{jiage}}.00</h2>
    </div>
    <div class="three">
        <div class="left">
            商户名称
        </div>
        <div class="right">
            {{title}}
        </div>
    </div>
     <div class="three">
        <div class="left">
            付款账户
        </div>
        <div class="right">
           <input type="text" placeholder="请输入付款账号">
        </div>
    </div>
    <div class="three">
        <div class="left">
            证件号码后四位
        </div>
        <div class="right">
           <input type="text" placeholder="请输入证件号码后四位">
        </div>
    </div>
    <div class="four">
        <div class="sss" @click="fun"> 确定买单</div>
       
    </div>
  </div>
</template>

<script>
import linkb from "@/api/linkb.js"
import axios from "axios"
// import qs from "qs"
export default {
    data(){
        return{
            title:this.$route.query.xiaolv.title,
            jiage:this.$route.query.xiaobai
        }
    },
    methods:{        
        fun(title,jiage){

            // console.log("title",this.title)
            // console.log("jiage",this.jiage)

            this.$router.push({name:"goods",query:{title:this.title,jiage:this.jiage}})
        axios({
            url:"/gouwu",
            method:"post",
            data:{
                money:123,
                id:4
            }
            
        }).then((res)=>{
            
            let obj=JSON.parse(res.config.data)
            console.log(obj)
        }).catch((err)=>{
            console.log(err)
        })
        //  axios({
        //     url:"/gouwu/",
        //     method:"delete",
            
        // }).then((res)=>{
        //     console.log(res)
        // }).catch((err)=>{
        //     console.log(err)
        // })
        
            
        }
    }
}
</script>

<style scoped lang="scss">
    .zfbody{
        width: 100%;
        height: 100%;
        margin-top: 0.48rem;
        .one{
            width: 90%;
            margin: auto;
            height: 0.62rem;
            font-size: 0.16rem;
            line-height: 0.62rem;
        }
        .two{
            width: 90%;
            height: 0.6rem;
            margin: auto;
            font-size: 0.16rem;
            display: flex;
            align-items: center;
            h2{
                
                color: #096ec0;
            }
        }
        .three{
            width: 90%;
            height: 0.35rem;
            margin: 0.2rem auto;
            display: flex;
            border-bottom: 0.01rem solid gray;
            
            .left{
                width: 30%;
                height: 100%;
                text-align: center;
                line-height: 0.35rem;
                font-size: 0.14rem;
            }
            .right{
                width: 70%;
                height: 100%;
                
                line-height: 0.35rem;
                font-size: 0.14rem;
                input{
                width: 100%;
                height:0.32rem ;
                border: none;
            }
            }
            
        }
        .four{
    width: 100%;
    height: 3rem;
    margin-top: 0.1rem;
    background-color: white;
    position: relative;
    .sss{
        font-size: 0.18rem;
        width: 50%;
        height: 0.4rem;
        position: absolute;
        bottom: 0.2rem;
        left: 0.9rem;
        border: 0.02rem solid #096ec0;
        text-align: center;
        line-height: 0.4rem;
        border-radius: 0.1rem;
        color: #096ec0;
    }
  }
    }
</style>